<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'register.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
    <div>
    	<h1>创建你的电子邮件账号</h1>
    	需要填写如下信息：
    	<form action="doRegister.jsp" method="post">
    		<table>
    			<tr>
    				<td>账号名：</td>
    				<td>
    					<input type="text" name="username">126.com
    				</td>
    			</tr>
    			<tr>
    				<td>密码：</td>
    				<td>
    					<input type="password" name="password">
    				</td>
    			</tr>
    			<tr>
    				<td>选择性别：</td>
    				<td>
    					<input type="radio" name="sex" value="man">男
    					<input type="radio" name="sex" value="woman">女 
    				</td>
    			</tr>
    			<tr>
    				<td>爱好兴趣：</td>
    				<td>
    					<input type="checkbox" name="hobby" value="网络">网络
    					<input type="checkbox" name="hobby" value="运动">运动
    					<input type="checkbox" name="hobby" value="旅游">旅游
    				</td>
    			</tr>
    			<tr>
    				<td><input type="reset" value="重填"></td>
    				<td><input type="submit" value="注册"></td>
    			</tr>
    		</table>
    	</form>
    </div>
  </body>
</html>
